package com.zjh.hes.domain.po;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author zjh
 * @since 2025-11-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("item")
//@ApiModel(value="Item对象", description="商品表")
public class Item implements Serializable {

    private static final long serialVersionUID = 1L;

//    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

//    @ApiModelProperty(value = "商品名称")
    private String name;

//    @ApiModelProperty(value = "价格")
    private BigDecimal price;

//    @ApiModelProperty(value = "库存")
    private Integer stock;

//    @ApiModelProperty(value = "商品图片URL")
    private String image;

//    @ApiModelProperty(value = "商品分类")
    private String category;

//    @ApiModelProperty(value = "品牌")
    private String brand;

//    @ApiModelProperty(value = "规格（JSON格式）")
    private String spec;

//    @ApiModelProperty(value = "已售数量")
    private Integer sold;

//    @ApiModelProperty(value = "评论数量")
    private Integer commentCount;

//    @ApiModelProperty(value = "是否广告")
    @TableField("isAD")
    private Boolean isAD;

//    @ApiModelProperty(value = "状态（1=上架,0=下架）")
    private Boolean status;

//    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

//    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updateTime;

//    @ApiModelProperty(value = "创建人")
    private String creater;

//    @ApiModelProperty(value = "更新人")
    private String updater;


}
